<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>jwmp 管理系统-登录</title>
  <jsp:include page="/WEB-INF/views/common/link.jsp" />

  <link rel="stylesheet" href="/static/js/plugins/iCheck/square/blue.css">
  <script src="/static/js/plugins/iCheck/icheck.js"></script>
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <a href="http://www.jwmp.com"> <b>管理系统</b>JWMP</a>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">${errorMsg}</p>
    <form action="/login" method="post">
      <div class="form-group has-feedback">
        <input type="text" class="form-control" placeholder="请输入账号"
               name="username" value="root" <%--value="${cookie.username.value}"--%>>
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input type="password" class="form-control" placeholder="请输入密码"
               name="password" value="admin">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      
      <div class="row">
        <div class="col-xs-8">
          	<input type="text" class="form-control" name="randomCode"  placeholder="请输入验证码" >
        </div>
        <div class="col-xs-4">
          <img alt="验证码" src="/randomCode" id="randomCode" style="cursor: pointer">
        </div>
      </div>
      
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox icheck">
            <label>
              <input type="checkbox" name="remeberMe" value="true" ${empty cookie.username ? "" : "checked"}> 记住我
            </label>
          </div>
        </div>
        <div class="col-xs-4">
          	<input type="submit" class="btn btn-primary btn-block btn-flat submitBtn" value="登录">
        </div>
      </div>
    </form>
  </div>
</div>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' /* optional */
    });
  });
</script>
</body>
</html>
